package com.yunding.house.utils.wx.utils;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 资源映射路径  图片路径  能用的
 */
@Configuration
public class MyWebAppConfigurer implements WebMvcConfigurer {

    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/ssjt1.0.0/src/main/resources/image/**").addResourceLocations("file:F:/ssjt1.0.0/src/main/resources/image/");
//        registry.addResourceHandler("/statics/image/**").addResourceLocations("file:F:/ssjt1.0.0/src/main/resources/image/");
//        registry.addResourceHandler("/static/statics/image/**").addResourceLocations("file:D:/apache-tomcat-8.0.53-windows-x64/apache-tomcat-8.0.53/webapps/ssjt/src/main/resources/image/");
        registry.addResourceHandler("/static/statics/image/**").addResourceLocations("file:D:/apache-tomcat-9.0.6/webapps/ssjt/src/main/resources/image/");
        registry.addResourceHandler("/**").addResourceLocations("file:F:/YDPROJECT/");
    }
}

